package com.fenger.sys.mapper;

import com.fenger.sys.domain.User;
import com.fenger.sys.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);
    User selectByLoginname(String loginname);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> queryAllUser(UserVo userVo);

    Integer queryUserMaxOrderNum();

    List<User> queryUserByDeptId(Integer deptid);

    User selectForLogin(String loginname, String password);
}